package com.freewater.springboot.demo.ioc.genericdi;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class CatBusiness extends AnimalBusiness<Cat> {

    public CatBusiness(List<Cat> animals) {
        super(animals);
    }

    @Override
    public void doSomeBusiness() {
        System.out.println(this.animals.size() + " cats do some business");
    }
}
